package cn.eud.hunau.request;

import jakarta.validation.constraints.NotBlank;

/**
 * 请求数据
 *
 * @author hb
 * @date 2025-06-18 16:32:34
 */
public class UserReq {
    /*
    * @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式错误")
    private String telphone;
    @NotBlank(message = "密码不能为空")
    * */
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;


    public UserReq() {
    }

    public UserReq(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
